import Vue from 'vue'
import Router from 'vue-router'
import  Login from '@/components/Login'
import  Home from '@/components/Home'
import  TransforMoney from '@/components/TransforMoney'
import  TransforSuccess from '@/components/TransforSuccess'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      path:"/home",
      name:"Home",
      component:Home,
      children:[
        {
          path:"/transforMoney",
          name:"TransforMoney",
          component:TransforMoney
        },
        {
          path:"/transforSuccess",
          name:"TransforSuccess",
          component:TransforSuccess
        }
      ]
    }

  ]
})
